<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格样式</title>
    <style>
        thead {
            text-align: left;
            font-size: large;
            font-family: 宋体;
            background-color: pink;

        }
        td {
            text-align: center;
        }
        table, th, tr, td {
            border: 1px dotted red;
            width: 500px;
            /*将多条边框折叠成一条线*/
            border-collapse: collapse;
        }
    </style>
</head>
<body>
<table>
    <thead>
    <tr>
        <th>学号</th>
        <th>姓名</th>
        <th>性别</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>1</td>
        <td>wen</td>
        <td>male</td>
    </tr>
    <tr>
        <td>2</td>
        <td>金之扬</td>
        <td>male</td>
    </tr>
    <tr>
        <td>3</td>
        <td>谷帅</td>
        <td>male</td>
    </tr>
    </tbody>
</table>

</body>
</html>